package io.xxx.mario.task.receive;

import io.xxx.mario.task.ReceiverType;

public interface Receiver {

    ReceiverType type();

    /**
     * Contact | Room ID
     */
    Long id();

    String outId();

    default Long robotId() {
        return -1L;
    }

    default String robotWxId() {
        return "";
    }

    default String robotNickName() {
        return "";
    }

    /**
     * Contact | Room Name
     */
    String name();

    interface Filter {

        boolean doFilter(Receiver receiver);

        boolean support(Receiver receiver);
    }
}
